package com.dingreading.cloud.app.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "relatives")
public class Relatives implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    /**
     * 亲属全名
     */
    @ApiModelProperty(value = "亲属全名")
    private String fullName;

    /**
     * 称谓
     */
    @ApiModelProperty(value = "称谓")
    private String appellation;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 公众号OPENID
     */
    @ApiModelProperty(value = "公众号OPENID")
    private String gzhOpenId;

    /**
     * 公众号是否推送到店信息
     * 1.启用 0.禁用
     */
    @ApiModelProperty(value = "公众号是否推送到店信息 1.启用 0.禁用")
    private Integer gzhPush;

    /**
     * 小程序OPENID
     */
    @ApiModelProperty(value = "小程序OPENID")
    private String miniOpenId;

    /**
     * 微信UnionID
     */
    @ApiModelProperty(value = "微信UnionID")
    private String WechatUnionId;

}
